<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
onLaunch(() => {
  console.log("App Launch");
  // initApp()
}); 
onShow(() => {
  console.log("App Show");
});
onHide(() => {
  console.log("App Hide");
});

// 初始化应用判断是否登录
function initApp() {
  console.log('initApp')
  const token = uni.getStorageSync('userInfo').token
  if (token) {
    navigate('reLaunch', 'home')
  } else {
    navigate('reLaunch', 'login')
  }
}
</script>
<style lang="scss">
@import 'static/style/index.css';
body {
  margin-bottom: env(safe-area-inset-bottom) !important;
}

#toolbar,
#bottombar {
	display: none !important;
}
</style>
